package com.mazaiting.manager.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mazaiting.mybatisplus.domain.entity.BaseUserEntity;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * sys_user用户表
 *
 * @author 党海亮
 * @since 2022-03-22
 */
@Setter
@Getter
@TableName("sys_user")
public class SysUser extends BaseUserEntity implements Serializable {

    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String username;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 部门 ID
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 账户是否可用(1:不可用，0:可用)
     */
    @TableField(value = "is_enabled")
    private Boolean enabled;

    /**
     * 账户是否过期(1:过期，0:没过期)
     */
    @TableField("is_account_non_expired")
    private Boolean accountNonExpired;

    /**
     * 密码是否过期(1:过期，0:没过期)
     */
    @TableField("is_credentials_non_expired")
    private Boolean credentialsNonExpired;

    /**
     * 账户是否锁定(1:锁定，0:没锁定)
     */
    @TableField("is_account_non_locked")
    private Boolean accountNonLocked;

}
